<?php

class GoodsListing extends RuleParser {
	
	public function parse() {
		$model = $this->model;
		$ops = array();
		if($model->status == 'ST_PASSED') {
			if($model->listing_status == 'ST_NONE') {
				$ops[] = 'listing';
			}
			if($model->listing_status == 'ST_LISTING') {
				$ops[] = 'delisting';
			}
			if($model->listing_status == 'ST_DELISTING') {
				$ops[] = 'listing';
				$ops[] = 'edit';
				$ops[] = 'delete';
			}
		}
		return $ops;
	}
}

?>